package demo.Thread;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/9-08-09-18:41
 * @Description：demo.Thread
 */
public class thread_double_100 {
    public static void main(String[] args) {
        Thread thread = new Thread(){
            @Override
            public void run() {
                for (int i = 0; i <= 100; i+=2) {
                    System.out.println(Thread.currentThread().getName() + " -------------> "  + i);
                }
            }
        };
        thread.run();
        for (int i = 1; i < 100; i+=2) {
            System.out.println(Thread.currentThread().getName() + "------------------>" + i);
        }
    }
}
